$(function(){
    starEvent.getCookie();
    starEvent.event();
    headerEvent.styleShow(1);
})
starEvent = {
    getCookie:function(){
        let num = gatherCookie.getCookie('num');
        let element = $('div main');
        if(num){
            element.eq(num).css('display','flex').siblings().hide();
        }else{
            element.eq(0).css('display','flex').siblings().hide();
        }
    },
    event:function(){
        let element = $('main section article .detail + p');
        let detailHide = $('main section article .detail-hide');
        element.click(()=>{//集团文化点击事件
            element.hide();
            detailHide.css({
                'height':'950px',
            });
            $('html,body').animate({
                'scrollTop':'950px'
            })
        });

    }
}